#ifndef BLACKBEAR_FACTORY_H_
#define BLACKBEAR_FACTORY_H_

#include <QList>
#include <QString>

class BlackBear;
class BBTable;

class BlackBearFactory
{
public:
	static BlackBearFactory* instance();
	
	BlackBear* connect( const QString& dataBaseName,
					    const QString& userName,
					    const QString& password,
						const QString& hostName = 0);
/*
	bool createDataBase( const QString& hostName,
						 const QString& dataBaseName,
						 const QString& userName,
						 const QString& password,
						 const QString& xmlMappingFileName );
*/
private:
	BlackBearFactory()
	{
		//DOES NOTHING
	}
	~BlackBearFactory()
	{
		//DOES NOTHING
	}

	void createTable( QString tableName, QList<BBTable> columnsNames );

private:
	static BlackBearFactory* m_instance;
};

#endif
